<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="white" />
		<title>个人中心-资料修改</title>
		<link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css">
		<link rel="stylesheet" href="../public/css/mobileSelect.css">
		<link rel="stylesheet" href="../public/css/jquery-weui.css">
		<link rel="stylesheet" href="../public/css/common.css" />
		<link rel="stylesheet" href="css/personal-data.css" />
		<script src="../public/js/jquery-2.1.4.js"></script>
		<script src="../public/js/template-web.js"></script>
		<script src="../public/js/mobileSelect.min.js"></script>
		<script src="../public/js/font_size.js"></script>
		<script src="../public/js/common.js"></script>
		<script src="js/personal-data.js"></script>
	</head>

	<body>
		<div class="wrap container">
			<div class="personal-content">
				<div class="personal-header">
					<div class="title">
						<div class="icon">
							<a href="index.html"><img class="img-responsive" src="../public/images/arrow_left@2x.png" /></a>
						</div>
						<div class="text">资料修改</div>
					</div>
				</div>
				<div id="personal-body" class="personal-body">
					<script id="personal-body-tpl" type="text/html">
						<div class="personal-list-box">
							<ul style="overflow: hidden;">
								<li>
									<a href="javascript:;">
										<div class="detail">修改头像</div>
										<div class="head-img">
											<img id="head-img" style="height: 100%;" class="img-responsive" src="{{if rs.headURL!=''}}{{url+rs.headURL}}{{else}}images/head_img@2x.png{{/if}}" />
											<input onchange="getFormData(this)" type="file" />
										</div>
									</a>
								</li>
								<li>
									<a href="javascript:;" onclick="isUserAuth()">
										<div class="detail">实名认证</div>
										<div class="text">
											{{if rs.iDNumber==null||rs.iDNumber==''}}
											<font color="#FD2727">未认证</font>
											{{else}}
											<font color="#27A3FD">已认证</font>
											{{/if}}
										</div>
									</a>
								</li>
								<!--<li>
									<a href="javascript:;" onclick="showNicknamePopup()">
										<div class="detail">昵称</div>
										<div class="text">
											<font color="#27A3FD" id="nikename">{{rs.nikename}}</font>
										</div>
									</a>
								</li>-->
								<li class="not-after">
									<a href="javascript:;">
										<div class="detail">账号</div>
										<div class="text ellipsis-1">
											<font color="#27A3FD">{{rs.username}}</font>
										</div>
									</a>
								</li>
								<li>
									<a href="javascript:;" onclick="showSelectByType('sex')">
										<div class="detail">性别</div>
										<div class="text" id="sex-box">
											<font color="#27A3FD" id="sex">{{if rs.sex!=null}}{{rs.sex == 0 ? '男':'女'}}{{/if}}</font>
										</div>
									</a>
								</li>
								<li>
									<a href="javascript:;" id="year-box">
										<div class="detail">年龄</div>
										<div class="text">
											<font color="#27A3FD" id="year">{{rs.age}}</font>
										</div>
									</a>
								</li>
								<li>
									<a href="edit-password.html">
										<div class="detail">修改登录密码</div>
									</a>
								</li>
								<li>
									<a href="edit-money-password.html">
										<div class="detail">重置资金密码</div>
									</a>
								</li>
							</ul>
						</div>
						<div class="submit-btn" onclick="doEditUserData()">保存</div>
					</script>
				</div>
			</div>
		</div>
	</body>
	<div id="nickName-popup" class="weui-popup__container">
		<div class="weui-popup__overlay"></div>
		<div class="weui-popup__modal">
			<div class="wrap container">
				<div class="personal-content">
					<div class="personal-header">
						<div class="title">
							<div class="icon">
								<a href="javascript:;" class="close-popup"><img class="img-responsive" src="../public/images/arrow_left@2x.png" /></a>
							</div>
							<div class="text">修改昵称</div>
						</div>
					</div>
					<div class="personal-body nick-name">
						<div class="input-box" style="margin-bottom: 0.84rem;">
							<div class="label"></div>
							<input id="tpl-nikename" type="text" placeholder="请输入修改昵称" />
						</div>
						<div class="submit-btn" onclick="getIptNickName()">确定</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="https://cdn.bootcss.com/jquery-weui/1.2.1/js/jquery-weui.min.js"></script>

</html>